#include <iostream>
#include <string>
#include <boost/algorithm/string.hpp>
#include "transition.h"
#include "defines.h"

using namespace std;
Transition::Transition(std::string sid, std::string targetid, 
		       std::string event, std::string cond, 
		       std::string stype):
  sourceid(sid),
  event(event), 
  cond(cond),
  type(EXTERNAL)
{
  boost::split(targetids, targetid, boost::is_any_of("\t "));
  if (stype == "internal")
    type = INTERNAL;
}

Transition::~Transition()
{

}

void Transition::exec(void)
{
  cout << "exec to target (s) ";
  showSequence(targetids);
  cout << endl;
}
